@import "[default].parameters.css";

body {
    font-family: 'Lato', sans-serif;
    font-size: 100%;
    font-weight: 400;
}

strong, b {
    font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Saira, sans-serif;
    font-weight: bold;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    font-size: 1.2rem;
}
 
p.mini {
    font-size: 1rem;
}

a {
    color: var(--main-color);
    text-decoration: none;
}

.richtext img {
    max-width: 95%;
}
.richtext li {
    font-size: 1.2rem;
}

.ratio-portrait {
    /*--bs-aspect-ratio: 150%;*/
    aspect-ratio: 0.75;
}
@media screen and (min-width: 992px) {
    .ratio-portrait {
        /*--bs-aspect-ratio: 60%;*/
        aspect-ratio: 1.75;
    }
}

@media screen and (min-width: 992px) {
    .richtext img {
        max-width: 100%;
    }
}

.grid-row {
    padding-top: var(--main-padding);
    padding-bottom: var(--main-padding);
    background-repeat: no-repeat;
    background-size: cover;
    /*border: 1px dashed red;*/
}

    .grid-row .grid-row-item {
        /*margin-top: var(--main-padding);*/
    }

.img-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

a:hover {
    color: var(--main-color-hover);
    text-decoration: underline;
}

a.more {
    border-bottom: 1px solid var(--main-color-hover);
    padding-bottom: .2rem;
}

a.more-green {
    color: var(--main-green);
    border-color: var(--main-green);
}

    a.more-green:hover {
        color: var(--main-green-hover);
        border-color: var(--main-green-hover);
    }

.link {
    cursor: pointer;
}

.breadcrumb {
    margin: 0;
    font-size: .9rem;
    font-weight: 400;
    color: var(--main-darkgray);
}

    .breadcrumb a {
        color: var(--main-text);
        font-weight: 500;
    }

.menu-offset {
    /*padding-top: var(--offset-menu);*/
}

.fade {
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
}

.border-corner {
    background: linear-gradient(to right, white 3px, transparent 3px) 0 0, linear-gradient(to right, white 3px, transparent 3px) 0 100%, linear-gradient(to left, white 3px, transparent 3px) 100% 0, linear-gradient(to left, white 3px, transparent 3px) 100% 100%, linear-gradient(to bottom, white 3px, transparent 3px) 0 0, linear-gradient(to bottom, white 3px, transparent 3px) 100% 0, linear-gradient(to top, white 3px, transparent 3px) 0 100%, linear-gradient(to top, white 3px, transparent 3px) 100% 100%;
    background-repeat: no-repeat;
    background-size: 30px 30px;
}

.numbers {
    background-repeat: no-repeat;
    background-size: cover;
    height: 380px;
}

    .numbers .container {
        height: 100%;
    }

.number-box-list .box {
    max-width: 220px;
}

    .number-box-list .box h6 {
        font-size: 1.5rem;
        font-weight: 900;
    }

    .number-box-list .box p {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1rem;
    }

    .number-box-list .box img {
        max-width: 60px;
    }

p.ellipsis {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}


@media screen and (min-width: 992px) {
    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.8rem;
    }

    h3 {
        font-size: 2.6rem;
    }

    p {
        font-size: 1.4rem;
    }
    
    p.mini {
        font-size: 1rem;
    }

    .offset-top {
        margin-top: var(--offset-top-desktop);
    }

    .img-shadow-left {
        box-shadow: -20px 20px 0px 0px rgba(151,151,151, .2);
        -webkit-box-shadow: -20px 20px 0px 0px rgba(151,151,151, .2);
        -moz-box-shadow: -20px 20px 0px 0px rgba(151,151,151, .2);
    }

    .img-shadow-right {
        margin-right: 20px; /* offset per ombra */
    }

        .img-shadow-right img {
            box-shadow: 20px 20px 0px 0px rgba(151,151,151, .2);
            -webkit-box-shadow: 20px 20px 0px 0px rgba(151,151,151, .2);
            -moz-box-shadow: 20px 20px 0px 0px rgba(151,151,151, .2);
            border-bottom-right-radius: 20px;
        }
}


.image-fullscreen > picture > img {
    width: 100%;
    object-fit: cover;
    object-position: bottom;
    /*min-height: 100vh;
    min-height: 100dvh;*/
    height: 100vh;
    height: 100dvh;
}

.no-fullscreen > picture > img {
    width: 100%;
    object-fit: cover;
    object-position: bottom;
    height: auto;
}


.half-container {
    height: 100%;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    text-align: center;
}

@media screen and (min-width: 992px) {
    .half-container {
        padding: 3rem;
        max-width: 636px;
        align-items: start;
        text-align: left;
    }

    .col1 .half-container {
        float: right;
    }
}

/* LANDING */
.landing-header {
    background-color: white;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    padding: 1rem 0;
    max-height: 100px;
    box-shadow: 0px 10px 5px 0px rgba(112,112,112,0.5);
    z-index: 999;
}
.landing-header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.landing-header .social a {
    font-size: 1.4rem;
}
.landing-header a {
    color: #000;
}
.landing-header a.menu-item {
    border-bottom: 1px solid #000;
    font-weight: bold;
}
.landing-header a.menu-item:hover {
    text-decoration: none;
    color: var(--primary-color);
}
.landing-header .wrapper-logo {
    margin-top: 0;
}
.landing-header .wrapper-logo img {
    max-width: 90px;
}
@media screen and (min-width: 768px) {
    .landing-header .wrapper-logo {
        margin-top: -4rem;
    }
    .landing-header .wrapper-logo img {
        max-width: none;
    }
}

.landing-footer {
    padding: 3rem 0;
    background-color: #fff;
    color: #000;
}
.landing-footer .social a {
    font-size: 1.5rem;
}
.landing-footer a {
    color: #000;
}
.landing-footer .social a:hover {
    color: var(--primary-color);
}